<%@ page pageEncoding="utf-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
		<title><fmt:message key="vipServiceGiftList.title" />
		</title>
		<link rel="stylesheet" type="text/css" media="all"
			href="<c:url value='/styles/layout.css'/>" />
		<script language="JavaScript" type="text/JavaScript">
<!--
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
//-->
</script> 
	</head>

	<body leftmargin="0" topmargin="0">
		<html:form action="vipServiceGift">
			<html:hidden property="id" />
			<input type="hidden" name="vipServiceSheetId"
				value="<c:out value="${param.vipServiceSheetId}"/>" />
			<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
				<tr>
					<td height="44" class="home-content-title">
						<img src="images/home_ico_listTitle.gif" width="22" height="20"
							align="absmiddle">
						新增礼仪物品记录
					</td>
				</tr>
	<logic:messagesPresent>
		<tr id="messagesPresentTrId" style="display:;">
			<td valign="top" class="black12" height="20">
				<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
					<tr>
						<td class="arror_bg">
							<span class="arror_title">
						     您的操作存在如下错误：<br></span>
						     <html:errors/>
					    </td>
				    </tr>
			    </table>
			</td>
		</tr>
   </logic:messagesPresent>
				<tr>
					<td height="40" class="home-search-space">
						&nbsp;
						<fmt:message key="common.warning" />
					</td>
				</tr>
				<tr>
					<td valign="top">
						<table width="100%" height="100%" border="0" cellpadding="0"
							cellspacing="0">
							<tr>
								<td class="home-table-topline">
								</td>
							</tr>
							<tr>
								<td class="home-table-leftline">
									<table width="100%" border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td class="home-table-tool-content">
												<%--<input type="button" value="保存" class="home-inputBtn"
												 onclick="doSave();"/>--%>
												 
											<input type="button" class="home-inputBtn" onclick="doSave();" value="保存"
			                                   <logic:messagesNotPresent>
			                                     <c:if test="${('savesubmit' eq param.method)  || ('2' eq param.type)}">disabled</c:if> 
			                                   </logic:messagesNotPresent>  
			                                     /> 
													
												<html:reset styleClass="home-inputBtn">
													重置
												</html:reset>
												
												 
												
											</td>
										</tr>
										<tr>
											<td align="center" valign="top">
												&nbsp;
											</td>
										</tr>
										<tr>
											<td valign="top" class="home-edittable-space">
												<table width="100%" border="0" cellspacing="0"
													cellpadding="0">
													<tr>
														<td>
															<table width="100%" border="0" cellpadding="4"
																cellspacing="1" class="home-subtable-bgcolor">
																<tr>
																	<td width=15% class="home-subtable-view-tdstyle-right">
																		物品类型：
																	</td>
																	<td class="home-subtable-view-tdstyle-left">
																		<select name="category">
																			<option value=1>
																				鲜花
																			</option>
																			<option value=2>
																				地毯
																			</option>
																			<option value=3>
																				礼品
																			</option>
																		</select>
																</tr>
																<tr>
																	<td class="home-subtable-view-tdstyle-right">
																		描述：
																	</td>
																	<td class="home-subtable-view-tdstyle-left">
																		<textarea name="flowerDesc" cols="50" rows="3"
																			class="home-table-inputbox"><c:out value="${vipServiceGiftForm.flowerDesc}" /></textarea>
																	</td>
																</tr>
																<tr>
																	<td class="home-subtable-view-tdstyle-right">
																		<font color="red">*</font>数量：
																	</td>
																	<td class="home-subtable-view-tdstyle-left">
																		<html:text property="flowerNumber"
																			styleId="flowerNumber"
																			styleClass="home-table-inputbox" />
																</tr>
																<tr>
																	
																	<td class="home-subtable-view-tdstyle-right">
																		<font color="red">*</font>费用：
																	</td>
																	<td class="home-subtable-view-tdstyle-left">
																		<html:text property="flowerFee" styleId="flowerFee"
																			styleClass="home-table-inputbox" />
																	</td>
																</tr>
																<tr>
																	<td class="home-subtable-view-tdstyle-right">
																		备注：
																	</td>
																	<td class="home-subtable-view-tdstyle-left">
																		<textarea name="flowerMemo" cols="50" rows="3"
																			class="home-table-inputbox"><c:out value="${vipServiceGiftForm.flowerMemo}" /></textarea>
																	</td>
																</tr>
															</table>
														</td>
													</tr>
												</table>
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td height="12">
									<table width="100%" border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td class="home-table-bottom-left">
												&nbsp;
											</td>
											<td class="home-table-bottom-bg">
												&nbsp;
											</td>
											<td class="home-table-bottom-right">
												&nbsp;
											</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td height="10">
						&nbsp;
					</td>
				</tr>
			</table>
		</html:form>
	</body>
	<script>
	function doSave(){
		vipServiceGiftForm.method="post";
		vipServiceGiftForm.action="vipServiceGift.html?method=save&processinstid=<c:out value="${param.processinstid}"/>&vipServiceSheetId=<c:out value="${param.vipServiceSheetId}"/>&workItemId=<c:out value="${param.workItemId}"/>&appId=<c:out value="${param.appId}"/>";
		vipServiceGiftForm.submit();
	}
	function doCommit(){
		vipServiceGiftForm.method="post";
		vipServiceGiftForm.action="vipServiceGift.html?method=save&processinstid=<c:out value="${param.processinstid}"/>&vipServiceSheetId=<c:out value="${param.vipServiceSheetId}"/>";
		vipServiceGiftForm.submit();
		window.close();
		alert("in the method");
	}
	
   	function doSubmit(){
		vipServiceGiftForm.method="post";
		vipServiceGiftForm.action="vipServiceGift.html?method=savesubmit&processinstid=<c:out value="${param.processinstid}"/>&workItemId=<c:out value="${param.workItemId}"/>&appId=<c:out value="${param.appId}"/>&vipServiceSheetId=<c:out value="${param.vipServiceSheetId}"/>";
		vipServiceGiftForm.submit();
	}

	function doCancel(){
		vipServiceGiftForm.method="post";
		vipServiceGiftForm.action="vipServiceGift.html";
		vipServiceGiftForm.submit();
	}
	function doReset(){
       document.vipServiceFoodForm.reset()

	}
	
	//成功返回,刷新列表
		var msg = "<c:out value="${msg}"/>";
		if('success' == msg){
			opener.aaa(); 
			window.close();
		}
	
</script>
</html>
<%@ include file="/common/script.jsp"%>

